extends HBoxContainer

var heart_full = preload("res://assets/ui/hearts/basic/heart.png")
var heart_empty = preload("res://assets/ui/hearts/basic/background.png")

func updateHearts(currentHealth : int):
	for i in self.get_child_count():
		if i < currentHealth:
			get_child(i).texture = heart_full
		else:
			get_child(i).texture = heart_empty
